package com.example.myfirstapp;

import java.io.Serializable;

import android.widget.ImageView;

public class Ground implements Serializable {
	
	private static final long serialVersionUID = -5537102363826980987L;
	private boolean Black;
	private boolean White;
	private boolean Beacon;
	private boolean Obstacle;
	private boolean Clear;
	private boolean Robot;
	private ImageView myImage;
	
	boolean isBlack()
	{
		return Black;
	}
	boolean isWhite()
	{
		return White;
	}
	boolean isBeacon()
	{
		return Beacon;
	}
	boolean isObstacle()
	{
		return Obstacle;
	}
	boolean isClear()
	{
		return Clear;
	}
	boolean hasRobot()
	{
		return Robot;
	}
	
	protected ImageView getMyImage() {
		return myImage;
	}
	protected void setMyImage(ImageView myImage) {
		this.myImage = myImage;
	}
	protected void setRobot() {
		Robot = true;
		Black = false;
		White = false;		
		Clear = false;
		Beacon = false;
		Obstacle = false;
	}
	protected void setBlack() {		
		Robot = false;
		Black = true;
		White = false;
		Clear = false;
		Beacon = false;
		Obstacle = false;
	}
	protected void setWhite() {		
		Robot = false;
		Black = false;
		White = true;
		Clear = false;
		Beacon = false;
		Obstacle = false;
	}
	protected void setBeacon() {
		Robot = false;
		Black = false;
		White = false;
		Clear = false;
		Beacon = true;
		Obstacle = false;
	}
	protected void setObstacle() {
		Robot = false;
		Black = false;
		White = false;
		Clear = false;
		Beacon = false;
		Obstacle = true;
	}
	protected void setClear() {
		Robot = false;
		Black = false;
		White = false;
		Clear = true;
		Beacon = false;
		Obstacle = false;
	}
	
	
}
